﻿Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Services
     Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function Fetch(ByVal id As Guid) As InventoryItem
        Return InventoryItem.Fetch(id)
    End Function

    <WebMethod()> _
    Public Function FetchList() As List(Of InventoryItem)
        Return InventoryItem.FetchList()
    End Function

    <WebMethod()> _
    Public Function Update(ByVal i As InventoryItem) As Boolean
        Return InventoryItem.Save(i)
    End Function


End Class